#include "wxseditor.h"
#include "wxsresource.h"
#include "wxsmith.h"

#include <wx/wx.h>

wxsEditor::wxsEditor( wxWindow* parent, const wxString& title, wxsResource* Resource ):
  EditorBase( parent, title ),
  m_Resource( Resource ) {
  wxSmith::Get()->ShowResourcesTab();
}

wxsEditor::~wxsEditor() {
  if( m_Resource ) {
    m_Resource->EditorClosed();
    m_Resource = 0;
  }
}
